package com.hmsproject.search.managedbean;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

import com.hmsproject.db.HMSDBConnectionFactory;
import com.hmsproject.db.HMSDBType;
import com.hmsproject.livedata.LiveDealData;

@ManagedBean
@ViewScoped
public class LiveDealDataView {

        private LiveDealData dealData;
        private String dealId;
        
        
        
        
	   private void init(){
		   this.dealData = HMSDBConnectionFactory.getInstance().getDBConnection().getLiveDealData("12345");
		   System.out.println(this.dealData.getHotel().getName());
	   }
	
	
	   
	   public static void main(String[] args) {
		   LiveDealDataView dataView =new LiveDealDataView();
		   dataView.init();
	   }
}
